#include "../common/common.h"
#include "svm.h"


#ifndef __SVM_CLASSIFY__
#define __SVM_CLASSIFY__

class SVMClassify
{
 public:
  SVMClassify(const char * _svmModelFile, const char * _recognitionFeatureFile, const char * _recognitionResultFile) ;
  ~SVMClassify() ;
 public:
  void classify(const char * _recognitionFeatureFile, const char * _recoginitionResultFile) ;
  bool getClassify() ;
 private:
  void loadSvmModel(const char * _svmModelFile) ;
 private:
  svm_node * svmNodePtr ;
  svm_model * model ;
  double predict_label ;
};
#endif
